<%= error_messages_for :reply %>
	<% for reply in index %>
		<li>
			<div class="title">
    			<h3 style="display:inline;"><%= reply.name %></h3>
				<span class="time"><h3 style="display:inline;"><%= reply.created_at.to_s(:db) %></h3></span>
    		</div>
    		<p><%= h reply.content %></p>
		</li>
	<%end%>
	<%= will_paginate_remote(@replies, :param_name => 'page', :movie_id => @movie.id, :url => replies_url) %>
	<li>
		<% remote_form_for :reply, :url => replies_url(:movie_id => @movie.id), :html => {:id => "content" } do |f| %>
    	<div class="title">
        	<h3 style="display:inline;">Name:<%= f.text_field :name, :style => "margin: 0px; padding: 0px; height: 11px;" %></h3>
			<span class="time" style="left:400px;">
				<h3 style="display:inline;">
				<a class="button" href="#"  onclick="Effect.toggle('new_reply', 'slide'); return false">
					Reply
				</a></h3></span>
        </div>
		<div id="new_reply" style="display:none">
        	<%= f.text_area :content, :html => {:id => "content"} %>
			<p><%= submit_tag :Submit %></p>
		</div>
		<%end%>
    </li>
	
	
